// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import FastClick from 'fastclick'
import VueRouter from 'vue-router'
import App from './App'
import router from './router'
import store from './store'
import Icon from 'vue-svg-icon/Icon.vue'
import '@/styles/index.less' // global css
import { Table, TableColumn } from 'element-ui';
import '@/permission'
import { BusPlugin } from 'vux' //vux Bus 插件
import { DatetimePlugin } from 'vux' //vux日期选择插件
import { ToastPlugin } from 'vux' //提示插件
import waves from '@/directives/waves/waves.js'
require('vue2-animate/dist/vue2-animate.min.css')//see https://github.com/asika32764/vue2-animate/

Vue.component(Table.name, Table)
Vue.component(TableColumn.name, TableColumn)
Vue.use(VueRouter)
Vue.use(BusPlugin)
Vue.use(ToastPlugin)
Vue.use(DatetimePlugin)
Vue.component('icon', Icon) //icon 组件,要在DatetimePlugin之后引入,不然可能会与vux中DatetimePlugin冲突报错
Vue.directive('waves', waves)

FastClick.attach(document.body)

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app-box')
